package dockyin.creative.pattern.builder;

import dockyin.creative.pattern.vo.Sender;
import dockyin.creative.pattern.vo.impl.EmailSender;
import dockyin.creative.pattern.vo.impl.SmsSender;

import java.util.ArrayList;
import java.util.List;

public class SenderBuilder {
    public List<Sender> buildSmsSenders(int count) {
        List<Sender> result = new ArrayList<>();
        for (int i = 0; i < count; i++) {
            result.add(new SmsSender());
        }

        return result;
    }

    public List<Sender> buildEmailSenders(int count) {
        List<Sender> result = new ArrayList<>();
        for (int i = 0; i < count; i++) {
            result.add(new EmailSender());
        }

        return result;
    }
}
